<style>

.verticalText
{
/*browser basati Chrome, Safari...*/
-webkit-transform: rotate(-90deg);
/*Firefox*/
-moz-transform: rotate(-90deg);
/*Internet Explorer*/
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
};

body{
border:2px solid #000;
}

</style>

<?

function printTagCloud($tags) {
        // $tags is the array
       
        arsort($tags);
       
        $max_size = 32; // max font size in pixels
        $min_size = 12; // min font size in pixels
       
        // largest and smallest array values
        $max_qty = max(array_values($tags));
        $min_qty = min(array_values($tags));
       
        // find the range of values
        $spread = $max_qty - $min_qty;
        if ($spread == 0) { // we don't want to divide by zero
                $spread = 1;
        }
       
        // set the font-size increment
        $step = ($max_size - $min_size) / ($spread);
        echo '<body >';
        // loop through the tag array
        foreach ($tags as $key => $value) {
                // calculate font-size
                // find the $value in excess of $min_qty
                // multiply by the font-size increment ($size)
                // and add the $min_size set above
                $size = 30;//round($min_size + (($value - $min_qty) * $step));
       
                echo '<span  style="font-size: ' .$size. '">' . $key.'    ' ;
        }
	    echo '</body>';
}

$tags = array('wddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32,'weddings' => 32, 'birthdays' => 41, 'landscapes' => 62, 'ham' => 51, 'chicken' => 23, 'food' => 91, 'turkey' => 47, 'windows' => 82, 'apple' => 27, "reI" => 1,
"anythingBut" => 1,
"drink" => 1,
"generelest" => 1,
"post" => 1,
"goodHello" => 1,
"going" => 3,
"very" => 5,
 "think" => 1, "re" => 17, "u" => 2, "Huaaa" => 1, "Bad" => 1, "inetersting" => 1, "HelloThe" => 1, "cloud" => 7, "know" => 4, "people" => 6, "Hello" => 8, "general" => 6, "coke" => 9, "way" => 1, "good" => 4, "dont" => 3, "italy" => 1, "kind" => 1, "bad" => 1, "cloudI" => 1, "omg" => 1, "textthey" => 1);

printTagCloud($tags);
?>